{"version":3,"sources":["link_buttons_panel.js"],"names":["BX","namespace","Landing","UI","Panel","LinkButtons","id","className","BaseButtonPanel","apply","this","arguments","removeButton","Button","Action","text","message","onClick","onRemove","bind","editButton","onEdit","addButton","document","body","appendChild","layout","getInstance","instance","prototype","constructor","__proto__","show","link","currentLink","range","createRange","scroll","window","scrollY","selectNode","getSelection","removeAllRanges","addRange","linkRect","getBoundingClientRect","requestAnimationFrame","style","position","top","bottom","left","call","execCommand","hide","event","preventDefault","stopPropagation","editPanel","Content","appendFooterButton","BaseButton","save","EditorPanel","SmallEditorPanel","getRangeAt","textNode","Block","Node","Text","currentNode","textField","Field","BaseField","currentField","isEditable","mess","toString","form","Form","BaseForm","title","node","querySelector","field","Link","href","getAttribute","target","indexOf","URLList","getEntries","then","result","forEach","landing","landingPlaceholder","ID","hrefInput","setValue","LinkURL","createPlaceholder","TITLE","blocks","block","blockPlaceholder","name","addField","clear","appendForm","enableEdit","getValue"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,uBAYbD,GAAGE,QAAQC,GAAGC,MAAMC,YAAc,SAASC,EAAIC,GAE9CP,GAAGE,QAAQC,GAAGC,MAAMI,gBAAgBC,MAAMC,KAAMC,WAEhDD,KAAKE,aAAe,IAAIZ,GAAGE,QAAQC,GAAGU,OAAOC,OAAO,UACnDC,KAAMf,GAAGgB,QAAQ,uBACjBC,QAASP,KAAKQ,SAASC,KAAKT,QAG7BA,KAAKU,WAAa,IAAIpB,GAAGE,QAAQC,GAAGU,OAAOC,OAAO,QACjDC,KAAMf,GAAGgB,QAAQ,qBACjBC,QAASP,KAAKW,OAAOF,KAAKT,QAG3BA,KAAKY,UAAUZ,KAAKE,cACpBF,KAAKY,UAAUZ,KAAKU,YAEpBG,SAASC,KAAKC,YAAYf,KAAKgB,SAShC1B,GAAGE,QAAQC,GAAGC,MAAMC,YAAYsB,YAAc,WAE7C,IAAK3B,GAAGE,QAAQC,GAAGC,MAAMC,YAAYuB,SACrC,CACC5B,GAAGE,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